package com.ruoyi.teaching.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 教务学员对象 teaching_student
 *
 * @author ruoyi
 * @date 2022-10-11
 */
public class TeachingStudent extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long studentId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 学生姓名
     */
    @Excel(name = "学生姓名")
    private String studentName;

    /**
     * 主要家长关系(0母亲 1父亲 2其他)
     */
    @Excel(name = "主要家长关系(0母亲 1父亲 2其他)")
    private String familyRefMain;

    /**
     * 次要家长关系(0母亲 1父亲 2其他)
     */
    @Excel(name = "次要家长关系(0母亲 1父亲 2其他)")
    private String familyRefMinor;

    /**
     * 主要手机号码
     */
    @Excel(name = "主要手机号码")
    private String phonenumber;

    /**
     * 次要手机号码
     */
    @Excel(name = "次要手机号码")
    private String phonenumberMinor;


    /**
     * 所属学校名
     */
    @Excel(name = "所属学校名")
    private String schoolName;

    /**
     * 性别(0男 1女 2未知)
     */
    @Excel(name = "性别(0男 1女 2未知)")
    private String sex;

    /**
     * 状态（0在读 1停用）
     */
    @Excel(name = "状态", readConverterExp = "0=在读,1=停用")
    private String status;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    /**
     * 出生年月
     */
    private Date birthday;

    /**
     * 结业日期
     */
    private Date graduationDate;

    /**
     * 年级
     */
    private String grade;

    /**
     * 创建者id
     */
    private Long createId;

    /**
     * 学校对象
     */
    private TeachingSchool teachingSchool;

    public TeachingSchool getTeachingSchool() {
        return teachingSchool;
    }

    public void setTeachingSchool(TeachingSchool teachingSchool) {
        this.teachingSchool = teachingSchool;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }

    public Long getStudentId() {
        return studentId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setFamilyRefMain(String familyRefMain) {
        this.familyRefMain = familyRefMain;
    }

    public String getFamilyRefMain() {
        return familyRefMain;
    }

    public void setFamilyRefMinor(String familyRefMinor) {
        this.familyRefMinor = familyRefMinor;
    }

    public String getFamilyRefMinor() {
        return familyRefMinor;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumberMinor(String phonenumberMinor) {
        this.phonenumberMinor = phonenumberMinor;
    }

    public String getPhonenumberMinor() {
        return phonenumberMinor;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getSex() {
        return sex;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setGraduationDate(Date graduationDate) {
        this.graduationDate = graduationDate;
    }

    public Date getGraduationDate() {
        return graduationDate;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getGrade() {
        return grade;
    }

    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    public Long getCreateId() {
        return createId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("studentId", getStudentId())
                .append("userId", getUserId())
                .append("studentName", getStudentName())
                .append("familyRefMain", getFamilyRefMain())
                .append("familyRefMinor", getFamilyRefMinor())
                .append("phonenumber", getPhonenumber())
                .append("phonenumberMinor", getPhonenumberMinor())
                .append("schoolId", getSchoolId())
                .append("schoolName", getSchoolName())
                .append("sex", getSex())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("birthday", getBirthday())
                .append("graduationDate", getGraduationDate())
                .append("grade", getGrade())
                .append("createId", getCreateId())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("teachingSchool", getTeachingSchool())
                .toString();
    }
}
